﻿using Microsoft.Extensions.Caching.Memory;

namespace ApplicationBase.Core.Cache
{
    public interface ICacheService
    {
        Task<TItem?> GetOrCreateAsync<TItem>(string key, Func<ICacheEntry, Task<TItem>> factory);
    }
}
